<template>
<h2>显示</h2>
姓名：{{name}}<br/>
密码：{{pwd}}<br/>

</template>

<script setup lang="ts">
import { useRoute } from 'vue-router'
const route = useRoute()
const name = route.params.name
const pwd = route.params.pwd
alert(name + ' ' + pwd)
</script>